18 Answers · 1- Using html : if (!$.trim($('p#element').html())) { // paragraph with id="element" is empty, your code goes here } · 2- Using text ... ... <看更多>
Search
Search
18 Answers · 1- Using html : if (!$.trim($('p#element').html())) { // paragraph with id="element" is empty, your code goes here } · 2- Using text ... ... <看更多>
jQuery : Remove Empty "p" Tags. GitHub Gist: instantly share code, notes, and snippets. ... <看更多>
You've correctly reassigned jQuery to a different name using noConflict() but then you're not using the same name in your code! You need to use $jq not jq$ ... ... <看更多>